import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

import java.util.*;

public class Test {
    public static void main(String[] args) {
//        Map<Integer,String> map=new HashMap<>();
        Map<Integer,String> map=new LinkedHashMap<>();
        map.put(2,"java2");
        map.put(8,"java8");
        map.put(8,"java4");
        map.put(4,"java4");
        map.put(9,"java9");
        map.put(1,"java1");
      /*  System.out.println(map.size());
        System.out.println(map);
        map.clear();
        System.out.println(map.size());
        System.out.println(map);*/
        /*map.clear();
        System.out.println(map.isEmpty());*/
      /*  System.out.println(map.get(4));
        System.out.println(map.get(2));
        System.out.println(map.get(8));*/
      /*  System.out.println(map.remove(2));
        System.out.println(map);*/
       /* System.out.println(map.containsKey(2));
        System.out.println(map.containsKey(10));
        map.containsValue("java2");
        map.containsValue("java10");*/
        Set<Integer> keys=map.keySet();
        System.out.println(keys);
        Collection<String> val=map.values();
        System.out.println(val);
    }
}
